
private ["_rnd","_logic","_place","_pos","_spawning"];
_place = _this select 0;

//Creates helipads !!! yay
_pos = [getPos _place select 0, (getPos _place select 1) + 200, getPos _place select 2];
logic1 =  createVehicle ["HeliHEmpty",_pos, [], 0, "NONE"];

_pos = [getPos _place select 0, (getPos _place select 1) - 200, getPos _place select 2];
logic2 =  createVehicle ["HeliHEmpty",_pos, [], 0, "NONE"];

_pos = [(getPos _place select 0) + 200, getPos _place select 1, getPos _place select 2];
logic3 =  createVehicle ["HeliHEmpty",_pos, [], 0, "NONE"];

_pos = [(getPos _place select 0) - 200, getPos _place select 1, getPos _place select 2];
logic4 =  createVehicle ["HeliHEmpty",_pos, [], 0, "NONE"];

_pos = [(getPos _place select 0) + 200, (getPos _place select 1) + 200, getPos _place select 2];
logic5 =  createVehicle ["HeliHEmpty",_pos, [], 0, "NONE"];

_pos = [(getPos _place select 0) - 200, (getPos _place select 1) - 200, getPos _place select 2];
logic6 =  createVehicle ["HeliHEmpty",_pos, [], 0, "NONE"];

_pos = [(getPos _place select 0) - 200, (getPos _place select 1) + 200, getPos _place select 2];
logic7 =  createVehicle ["HeliHEmpty",_pos, [], 0, "NONE"];

_pos = [(getPos _place select 0) + 200, (getPos _place select 1) - 200, getPos _place select 2];
logic8 =  createVehicle ["HeliHEmpty",_pos, [], 0, "NONE"];
logicArray = [logic1,logic2,logic3,logic4,logic5,logic6,logic7,logic8];
_spawning = true; //We are now spawning...
while {_spawning} do {
    
    
    
    _rnd = random floor (count logicArray);
    _logic = logicArray select _rnd;
    [_logic,5,10] execVM "craigs_scripts\simpleCeleryZSpawn.sqf";
    sleep 20;
};